package reading.util.utils;

import java.util.List;
import java.util.UUID;

/**
 * @author hldev
 */
public class StringUtils {
    public static String mkString(List<String> list, String sep) {
        StringBuilder sb = new StringBuilder("");
        int size = list.size();
        for (int i = 0; i < size; i++) {
            sb.append(list.get(i));
            if (i != size - 1) {
                sb.append(sep);
            }
        }
        return sb.toString();
    }

    public static String getUUID() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }
}
